ioemu: Force floppy disk images to be interpreted as raw.
authorKeir Fraser <keir.fraser@citrix.com>
Tue, 27 May 2008 10:51:33 +0000 (11:51 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Tue, 27 May 2008 10:51:33 +0000 (11:51 +0100)
Fixes specifying fda/fdb image names in domain configs.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
tools/ioemu/vl.c

index 76fa9acf6df0c311984850e520e02df9e30d4116..c4fe055389bf84a2fedf573db4e051dc4815529a 100644 (file)
@@ -7807,8 +7807,9 @@ int main(int argc, char **argv)
                 bdrv_set_type_hint(fd_table[i], BDRV_TYPE_FLOPPY);
             }
             if (fd_filename[i] != '\0') {
-                if (bdrv_open(fd_table[i], fd_filename[i],
-                              snapshot ? BDRV_O_SNAPSHOT : 0) < 0) {
+                if (bdrv_open2(fd_table[i], fd_filename[i],
+                               snapshot ? BDRV_O_SNAPSHOT : 0,
+                               &bdrv_raw) < 0) {
                     fprintf(stderr, "qemu: could not open floppy disk image '%s'\n",
                             fd_filename[i]);
                     exit(1);